<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<script type="text/javascript">
        function jumpPage(pages) {
            var pageForm = document.getElementById("pageForm");
            document.getElementById("pages").value=pages;
            pageForm.action="${url}";
            pageForm.method="post";
            pageForm.submit();
        }
</script>
<form target="_self" id="pageForm">
    <input type="hidden" name="pages" id="pages">
    
    <c:if test="${role.role_name!=null}">
        <input type="hidden" name="role_name" value="${role.role_name}">
    </c:if>

    <div class="btn-group" style="float: right;">
        <a type="button" onclick="jumpPage(1)" class="btn btn-white">首页</a>
        <a type="button"onclick="jumpPage(${(pages-1<1)?1:(pages-1)})" class="btn btn-white">上一页</a>
        <a type="button" onclick="jumpPage(${(pages+1>sumPage)?sumPage:(pages+1)})" class="btn btn-white">下一页</a>
        <a type="button" onclick="jumpPage(${sumPage})" class="btn btn-white">尾页</a>
    </div>
</form>